//
//  xmltestViewController.h
//  xmltest
//
//  Created by easystudio on 7/3/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "ASIHTTPRequest.h"
#import "ASIFormDataRequest.h"


@class XmlRequestBody;


@interface XmlParser : UIViewController 
<NSXMLParserDelegate>
{    
    NSMutableData *mydata;
    NSXMLParser *xmlParser;
    //NSString *nextnode;

    NSMutableDictionary *topicdata;
    NSMutableArray *topicstruct;
    //NSMutableDictionary *test;

    NSMutableString *tmp;
    NSMutableString *node, *prenode, *valuetype, *keyindex, *keyvalue;
    
    //XmlRequestBody *xmlbody;
    
    NSCondition *                  m_condition;            //线程同步
    
    NSString *return_mystring;
}

@property (nonatomic, retain) NSMutableData *mydata;
//@property (nonatomic, retain) NSXMLParser *xmlParser;
//@property (nonatomic, retain) NSString   *nextnode;
//@property (nonatomic, retain) NSMutableDictionary *topicdata;
//@property (nonatomic, retain) NSMutableArray *topicstruct;
//@property (nonatomic, retain) NSMutableDictionary *test;

//@property (nonatomic, retain) NSMutableString *node, *prenode, *valuetype, *keyindex, *keyvalue;


//-(IBAction)send:(id)sender;
//-(IBAction)xml:(id)sender;

//-(id)GetValue:(NSString *)string type:(NSString *)type;
-(int)SendXml:(NSString *)body;
-(int)SendXmlNoFilter:(NSString *)body;
-(NSMutableArray *)GetReturnArray;
-(NSString *)SendXmlGetSubURL:(NSString *)company_code;

-(int)XmlToArray:(NSData *)xmlData;

@end
